{block name="content"}
<div class="layui-tab layui-tab-card think-bg-white table-block">
    <div class="layui-tab-content think-box-shadow table-block table-block">
        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='text-left nowrap'>柜子名称</th>
                <th class='text-left nowrap'>柜子编号</th>
                <th class='text-left nowrap'>连接次数</th>
                <th class='text-left nowrap'>操作</th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr data-dbclick>
                <td class="nowrap">{$vo.device_name|default=''}</td>
                <td class="nowrap">{$vo.device_no|default=''}</td>
                <td class="nowrap">{$vo.num|default=''}</td>
                <td class='text-left nowrap'>
                    <a data-modal='{:url("seelog")}?device_no={$vo.device_no|default=""}&num={$vo.num|default=0}' data-title="查看日志" class='layui-btn layui-btn-sm layui-btn-primary'>查看日志</a>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
</div>
{/block}